﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.SimpleFlow
{
    /// <summary>
    /// 审批步骤
    /// </summary>
    public class sfTypeStep : Entity
    {
        /// <summary>
        /// 所属审批记录类型
        /// </summary>
        public virtual sfType Type { get; set; }

        /// <summary>
        /// 步骤名称
        /// </summary>
        public virtual string StepName { get; set; }

        /// <summary>
        /// 步骤是否结束的标志
        /// </summary>
        public virtual int IsEnd { get; set; }

        /// <summary>
        /// 排序标志
        /// </summary>
        public virtual int OrderFlag { get; set; }

        /// <summary>
        /// 审批步骤的审批角色列表（多对多）
        /// </summary>
        public virtual List<sfTypeStepRole> StepRoles { get; set; }

        /// <summary>
        /// 审批步骤的审批人列表
        /// </summary>
        public virtual List<ywxt.t_sys_user> StepUsers { get; set; }

        public sfTypeStep()
        {
            StepRoles = new List<sfTypeStepRole>();
            StepUsers = new List<ywxt.t_sys_user>();
        }
    }
}
